import request from '@/utils/request'

// 查询排水测点异常数据列表
export function listDrainageAlarm(query) {
    return request({
        url: '/realData/drainageAlarm/list',
        method: 'get',
        params: query
    })
}

// 查询排水测点异常数据详细
export function getDrainageAlarm(id) {
    return request({
        url: '/realData/drainageAlarm/' + id,
        method: 'get'
    })
}

// 新增排水测点异常数据
export function addDrainageAlarm(data) {
    return request({
        url: '/realData/drainageAlarm',
        method: 'post',
        data: data
    })
}

// 修改排水测点异常数据
export function updateDrainageAlarm(data) {
    return request({
        url: '/realData/drainageAlarm',
        method: 'put',
        data: data
    })
}

// 删除排水测点异常数据
export function delDrainageAlarm(id) {
    return request({
        url: '/realData/drainageAlarm/' + id,
        method: 'delete'
    })
}
